package com.zzw.properties;

import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * @author Administrator
 */
@ConfigurationProperties(value = "spring.cloud.gateway.redis-rate-limiter")
public class RedisRateLimterProperties extends InterceptorCommonsProperties {
    private String requestHeaderKey;
    private Integer replenishRate = 10;
    private Integer burstCapacity = 10;
    private Integer requestedTokens = 1;

    public RedisRateLimterProperties(){
        super();
    }

    public String getRequestHeaderKey() {
        return requestHeaderKey;
    }

    public void setRequestHeaderKey(String requestHeaderKey) {
        this.requestHeaderKey = requestHeaderKey;
    }

    public Integer getReplenishRate() {
        return replenishRate;
    }

    public void setReplenishRate(Integer replenishRate) {
        this.replenishRate = replenishRate;
    }

    public Integer getBurstCapacity() {
        return burstCapacity;
    }

    public void setBurstCapacity(Integer burstCapacity) {
        this.burstCapacity = burstCapacity;
    }

    public Integer getRequestedTokens() {
        return requestedTokens;
    }

    public void setRequestedTokens(Integer requestedTokens) {
        this.requestedTokens = requestedTokens;
    }
}
